package com.itgungnir.diyshuo.fragment.zhinan_fragment;

import com.itgungnir.diyshuo.bean.DiyBean;
import com.itgungnir.diyshuo.bean.GoodsBean;

import java.util.List;
import java.util.Map;

import rx.Subscriber;

/**
 * 指南页面中接口的统一管理类
 */
public class ZhinanContract {
    public interface View {
        //获取指南数据成功执行的方法
        public void onGetZhinanSuccess(List<GoodsBean> goodsBeanList,List<Integer> list);
        //获取指南数据失败执行的方法
        public void onGetZhinanFail(String msg);
        //fragment中控件的点击事件
        public void onClickListener();
    }

    interface Model {
        public void getZhinanData(Map<String, String> params,OnLoadNewsListener loadNewsListener);
    }

    interface Presenter {
        public void getZhinanFromNet();
    }

    public interface OnLoadNewsListener {
        public void onSuccess(DiyBean bean,List<Integer> list);
        public void onFailure(Exception e);
    }
}